{extend name="layout" /}
{block name="content"}
<form class="layui-form" lay-filter="LAY-app-course-document-form" id="LAY-app-course-document-form"
      style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">当前课程</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">课件名称</label>
        <div class="layui-input-block">
            <input type="text" name="title" lay-verify="required" placeholder="请输入..." autocomplete="off"
                   class="layui-input" value="{$document.title|default=''}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">课件路径</label>
        <div class="layui-input-block">
            <input type="text" name="filepath" placeholder="请选择文件" autocomplete="off" class="layui-input"
                   value="{$document.filepath|default=''}">
            <button style="float: left;" type="button" class="layui-btn" layadmin-event="select_file">选择文件</button>
        </div>

    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-inline">
            <input type="text" name="sort" placeholder="请输入..." autocomplete="off" class="layui-input"
                   value="{$document.sort|default=0}">
        </div>
    </div>
    <div class="layui-form-item layui-hide">
        <input type="button" lay-submit lay-filter="LAY-app-course-document-submit" id="LAY-app-course-document-submit" value="确认">
    </div>
</form>
{/block}
{block name="js"}
<script>
    layui.use(['index', 'form'], function(){
        var $ = layui.$
            ,form = layui.form ;
    })
</script>
{/block}